package com.ruoyi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class VotingApplication
{
    public static void main(String[] args)
    {

        ConfigurableApplicationContext applicationContext = SpringApplication.run(VotingApplication.class, args);
        Environment environment = applicationContext.getBean(Environment.class);
        System.out.println("miku-boot(投票系统后台)  系统启动成功！后台地址：http://localhost:"+environment.getProperty("server.port")+environment.getProperty("server.servlet.context-path")+"                                               bbbbbbbb\n" +
                "                          iiii  kkkkkkkk                                              b::::::b                                                       tttt\n" +
                "                         i::::i k::::::k                                              b::::::b                                                    ttt:::t\n" +
                "                          iiii  k::::::k                                              b::::::b                                                    t:::::t\n" +
                "                                k::::::k                                               b:::::b                                                    t:::::t\n" +
                "   mmmmmmm    mmmmmmm   iiiiiii  k:::::k    kkkkkkkuuuuuu    uuuuuu                    b:::::bbbbbbbbb       ooooooooooo      ooooooooooo   ttttttt:::::ttttttt\n" +
                " mm:::::::m  m:::::::mm i:::::i  k:::::k   k:::::k u::::u    u::::u                    b::::::::::::::bb   oo:::::::::::oo  oo:::::::::::oo t:::::::::::::::::t\n" +
                "m::::::::::mm::::::::::m i::::i  k:::::k  k:::::k  u::::u    u::::u                    b::::::::::::::::b o:::::::::::::::oo:::::::::::::::ot:::::::::::::::::t\n" +
                "m::::::::::::::::::::::m i::::i  k:::::k k:::::k   u::::u    u::::u   ---------------  b:::::bbbbb:::::::bo:::::ooooo:::::oo:::::ooooo:::::otttttt:::::::tttttt\n" +
                "m:::::mmm::::::mmm:::::m i::::i  k::::::k:::::k    u::::u    u::::u   -:::::::::::::-  b:::::b    b::::::bo::::o     o::::oo::::o     o::::o      t:::::t\n" +
                "m::::m   m::::m   m::::m i::::i  k:::::::::::k     u::::u    u::::u   ---------------  b:::::b     b:::::bo::::o     o::::oo::::o     o::::o      t:::::t\n" +
                "m::::m   m::::m   m::::m i::::i  k:::::::::::k     u::::u    u::::u                    b:::::b     b:::::bo::::o     o::::oo::::o     o::::o      t:::::t\n" +
                "m::::m   m::::m   m::::m i::::i  k::::::k:::::k    u:::::uuuu:::::u                    b:::::b     b:::::bo::::o     o::::oo::::o     o::::o      t:::::t    tttttt\n" +
                "m::::m   m::::m   m::::mi::::::ik::::::k k:::::k   u:::::::::::::::uu                  b:::::bbbbbb::::::bo:::::ooooo:::::oo:::::ooooo:::::o      t::::::tttt:::::t\n" +
                "m::::m   m::::m   m::::mi::::::ik::::::k  k:::::k   u:::::::::::::::u                  b::::::::::::::::b o:::::::::::::::oo:::::::::::::::o      tt::::::::::::::t\n" +
                "m::::m   m::::m   m::::mi::::::ik::::::k   k:::::k   uu::::::::uu:::u                  b:::::::::::::::b   oo:::::::::::oo  oo:::::::::::oo         tt:::::::::::tt\n" +
                "mmmmmm   mmmmmm   mmmmmmiiiiiiiikkkkkkkk    kkkkkkk    uuuuuuuu  uuuu                  bbbbbbbbbbbbbbbb      ooooooooooo      ooooooooooo             ttttttttttt\n" +
                "\n");
    }
}
